package com.gvfish.dao;

import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

import org.springframework.stereotype.Repository;

import com.gvfish.entity.Authority;

@Repository
public class AuthorityDao extends CommonDao<Authority, Long> {
	private PersistenceManagerFactory persistenceManagerFactory;

	public void setPersistenceManagerFactory(PersistenceManagerFactory pmf) {
		this.persistenceManagerFactory = pmf;
	}
	@Override
	public PersistenceManager getPersistenceManager() {
		return persistenceManagerFactory.getPersistenceManager();
	}

	@Override
	public Class<Authority> getTClass() {
		return Authority.class;
	}
}
